package org.itsolutions.javaBackup.spi.backup.ftp;

import org.itsolutions.javaBackup.exceptions.AException;
import org.itsolutions.javaBackup.spi.backup.common.IDownloadHandler;

/**
 * 
 * @author Tomas Fecko
 */
public interface IFTPDownloadHandler extends IDownloadHandler {

	
	/**
	 * Method connects to the server.
	 * @param pServer server
	 * @param pUsername username
	 * @param pPassword password
	 * @throws AException exception during the connect (IOException, SocketException)
	 */
	void connect(String pServer, String pUsername, String pPassword) throws AException;

	/**
	 * Loggouts and disconnects from server.
	 * @throws AException exception during the logout and disconnect (IOException)
	 */
	void disconnect() throws AException;
}





